package com.windgo.mapper;

import com.windgo.bean.bo.wxhomebo.WxGoodsBo;
import com.windgo.bean.bo.wxhomebo.WxHotGoodsBo;
import com.windgo.bean.bo.wxhomebo.WxNewGoodsBo;
import com.windgo.bean.MarketGoods;
import com.windgo.bean.MarketGoodsExample;
import com.windgo.bean.vo.BrandListVo;
import com.windgo.bean.vo.CategoryListVo;
import com.windgo.bean.vo.ChildrenVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MarketGoodsMapper {
     List<Integer> searchBrandIdIsNoZero();
     Integer countNum();
    List<WxGoodsBo> searchById(Integer categoryId);
  //  List<WxNewGoodsBo> selectNewAll()

   Integer selectCategoryIdById(Integer id);
    List<WxNewGoodsBo> selectNewAll();

    List<WxHotGoodsBo> selectAll();


    long countByExample(MarketGoodsExample example);

    int deleteByExample(MarketGoodsExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(MarketGoods row);

    int insertSelective(MarketGoods row);

    List<MarketGoods> selectByExampleWithBLOBs(MarketGoodsExample example);

    List<MarketGoods> selectByExample(MarketGoodsExample example);

    MarketGoods selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("row") MarketGoods row, @Param("example") MarketGoodsExample example);

    int updateByExampleWithBLOBs(@Param("row") MarketGoods row, @Param("example") MarketGoodsExample example);

    int updateByExample(@Param("row") MarketGoods row, @Param("example") MarketGoodsExample example);

    int updateByPrimaryKeySelective(MarketGoods row);

    int updateByPrimaryKeyWithBLOBs(MarketGoods row);

    int updateByPrimaryKey(MarketGoods row);


    //获取所有的brand的id name
    List<BrandListVo> getAllBrand();

    //获取所有的category的id  name
    List<CategoryListVo> getAllCategory();

    //获取子类的信息
    List<ChildrenVo> getChildren(@Param("pid") Integer value);
}